package com.ant.storage.controller;


import com.ant.storage.common.ResultVo;
import com.ant.storage.pojo.HouseAccount;
import com.ant.storage.pojo.HouseSettlement;
import com.ant.storage.service.IHouseAccountService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author melon
 * @since 2023-11-13
 */
@RestController
@RequestMapping("/houseAccount")
public class HouseAccountController {

    @Autowired
    private IHouseAccountService accountService;

    @ApiOperation(value = "保存信息")
    @PostMapping("/houseAccountSave")
    public ResultVo houseAccountSave(@RequestBody HouseAccount dto) {
        accountService.houseAccountSave(dto);
        return ResultVo.success("操作成功");
    }
}
